Skip to content

Conversation

jankapunkt
Copy link
Member

@jankapunkt jankapunkt commented Aug 22, 2025

Summary

This updates dev dependencies to get the testsuite running again.
Edit: had to go the full round for esm+cjs cross compatibility
We should soon publish a full esm-only package, it's really annoying.

Linked issue(s)

#168 #167 (this PR is required to fix them)

Involved parts of the project

tests, dev

Added tests?

update mocha runner

Targeted Meteor release version

next release

Reproduction

clone, install, run tests

Copilot

This comment was marked as outdated.

@jankapunkt jankapunkt added bug Something isn't working dependencies Pull requests that update a dependency file labels Aug 24, 2025
@jankapunkt jankapunkt requested a review from Copilot August 25, 2025 07:13
@jankapunkt
Copy link
Member Author

So I updated the CI to only use Node 22 and 24 in order to get this esm/cjs cr💩p somehow running

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates development dependencies and converts the project from CommonJS to ES modules to fix the test suite. The main changes include updating Node.js versions, Babel configuration, test runners, and converting module imports/exports throughout the codebase.

  • Updated Node.js versions from 16-20 to 22-24 in CI configuration
  • Converted all CommonJS require/module.exports to ES6 import/export syntax
  • Updated development dependencies including Mocha, Babel, and other testing tools

Reviewed Changes

Copilot reviewed 28 out of 29 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
package.json Updated dev dependencies and Node.js versions for ESM compatibility
test/testHelpers.js Removed unused Meteor import and test helper, added asyncTimeout utility
test/src/*.tests.js Added .js extensions to all import paths for ESM compatibility
src/**/*.js Added .js extensions to all import paths and converted to ESM
lib/*.js Converted from CommonJS exports to ESM exports
helpers/reactNativeBindings.js Refactored from CommonJS to ESM with cleaner variable declarations
test/hooks/mockServer.js Converted to ESM and improved async handling
.github/workflows/node.js.yml Updated GitHub Actions and Node.js versions
README.md Added migration notice for ESM-only transition

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jankapunkt jankapunkt merged commit e84574c into master Aug 25, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants